const parentTpl = require('../views/comic.html')
import getdata from '../models/getdata';
import Bscroll from 'better-scroll';
class RenderParentchild{
    constructor(){

    }
    async render(){
        let list = (await getdata.getparentchild()).suggest;
        let html = template.render(parentTpl,{
            list
        })
        $('.all-content-wrap').html(html);
        let scroll = new Bscroll('.all-content-wrap');
    }
}

export default new RenderParentchild();